package com.cskaoyan.bean.topic;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class UpdateTopicBO {
    /**
     * id : 333
     * title : 1111
     * subtitle : 1111
     * price : 555
     * readCount : 55555
     * picUrl : http://182.92.235.201:8083/wx/storage/fetch/5ojad5zxczj9jrjmjeli.jpg
     * goods : []
     * addTime : 2020-12-07 14:17:44
     * updateTime : 2020-12-07 14:17:44
     * content : <p>使用 Spring Boot 开发，对外开发接口供调用，传入参数中有中文，出现中文乱码，查了好多资料，总结解决方法如下：</p>
     <h2>第一步,约定传参编码格式</h2>
     <p>不管是使用httpclient，还是okhttp，都要设置传参的编码，为了统一，这里全部设置为utf-8</p>
     <h2>第二步，修改application.properties文件</h2>
     <p>增加如下配置：</p>
     <pre class="hljs bash"><code class="bash hljs">spring.http.encoding.force=<span class="hljs-literal">true
     spring.http.encoding.charset=UTF-8
     spring.http.encoding.enabled=true1111111
     server.tomcat.uri-encoding=UTF-8
     </span></code></pre>
     */
//10
    private int id;
    private String title;
    private String subtitle;
    private BigDecimal price;
    private String readCount;
    private String picUrl;
    private Date addTime;
    private Date updateTime;
    private String content;
//????
    private Object goods;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getReadCount() {
        return readCount;
    }

    public void setReadCount(String readCount) {
        this.readCount = readCount;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Object getGoods() {
        return goods;
    }

    public void setGoods(Object goods) {
        this.goods = goods;
    }

    @Override
    public String toString() {
        return "UpdateTopicBO{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", price=" + price +
                ", readCount='" + readCount + '\'' +
                ", picUrl='" + picUrl + '\'' +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                ", content='" + content + '\'' +
                ", goods=" + goods +
                '}';
    }
}
